package cn.ac.cintcm;

/**
 * Hello world!
 *
 */
public class App 
{
    static int i = 0;
    int counter;
    public static void main( String[] args )
    {
        App a = new App();
        App a2 = new App();
        System.out.println( a.getCounter() );
        System.out.println( a2.getCounter() );
        String s1 = "abc";
        String s2 = "a";
        if (s1.contains(s2)) {
            System.out.println("ok.");
        }
    }
    
    public App() {
        counter = i++;
        System.out.println(counter);
        
    }
    
    public int getCounter() {
        return counter;
    }
}
